const path = require('path')
const resolve = dir => path.join(__dirname, dir)

module.exports = {
  // publicPath: 'src/',
  // 规定@的目录
  chainWebpack: config => {
    config.resolve.alias
      .set('@css', resolve('src/assets/css'))
      .set('@images', resolve('src/assets/images'))
  },
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  devServer: {
    open: true
  }
}
